Optimal. Leaf size=69 \[ -\frac{\sqrt{\pi } e^{-a} \text{Erf}\left (\sqrt{b} x\right )}{8 b^{3/2}}-\frac{\sqrt{\pi } e^a \text{Erfi}\left (\sqrt{b} x\right )}{8 b^{3/2}}+\frac{x \cosh \left (a+b x^2\right )}{2 b} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0414219, antiderivative size = 69, normalized size of antiderivative = 1., number of steps used = 4, number of rules used = 4, integrand size = 12, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.333, Rules used = {5324, 5299, 2204, 2205} \[ -\frac{\sqrt{\pi } e^{-a} \text{Erf}\left (\sqrt{b} x\right )}{8 b^{3/2}}-\frac{\sqrt{\pi } e^a \text{Erfi}\left (\sqrt{b} x\right )}{8 b^{3/2}}+\frac{x \cosh \left (a+b x^2\right )}{2 b} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 5324
Rule 5299
Rule 2204
Rule 2205
Rubi steps
\begin{align*} \int x^2 \sinh \left (a+b x^2\right ) \, dx &=\frac{x \cosh \left (a+b x^2\right )}{2 b}-\frac{\int \cosh \left (a+b x^2\right ) \, dx}{2 b}\\ &=\frac{x \cosh \left (a+b x^2\right )}{2 b}-\frac{\int e^{-a-b x^2} \, dx}{4 b}-\frac{\int e^{a+b x^2} \, dx}{4 b}\\ &=\frac{x \cosh \left (a+b x^2\right )}{2 b}-\frac{e^{-a} \sqrt{\pi } \text{erf}\left (\sqrt{b} x\right )}{8 b^{3/2}}-\frac{e^a \sqrt{\pi } \text{erfi}\left (\sqrt{b} x\right )}{8 b^{3/2}}\\ \end{align*}
Mathematica [A] time = 0.0682744, size = 67, normalized size = 0.97 \[ \frac{\sqrt{\pi } (\sinh (a)-\cosh (a)) \text{Erf}\left (\sqrt{b} x\right )-\sqrt{\pi } (\sinh (a)+\cosh (a)) \text{Erfi}\left (\sqrt{b} x\right )+4 \sqrt{b} x \cosh \left (a+b x^2\right )}{8 b^{3/2}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.048, size = 74, normalized size = 1.1 \begin{align*}{\frac{{{\rm e}^{-a}}x{{\rm e}^{-b{x}^{2}}}}{4\,b}}-{\frac{{{\rm e}^{-a}}\sqrt{\pi }}{8}{\it Erf} \left ( x\sqrt{b} \right ){b}^{-{\frac{3}{2}}}}+{\frac{{{\rm e}^{a}}{{\rm e}^{b{x}^{2}}}x}{4\,b}}-{\frac{{{\rm e}^{a}}\sqrt{\pi }}{8\,b}{\it Erf} \left ( \sqrt{-b}x \right ){\frac{1}{\sqrt{-b}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [B] time = 0.992813, size = 149, normalized size = 2.16 \begin{align*} \frac{1}{3} \, x^{3} \sinh \left (b x^{2} + a\right ) - \frac{1}{24} \, b{\left (\frac{2 \,{\left (2 \, b x^{3} e^{a} - 3 \, x e^{a}\right )} e^{\left (b x^{2}\right )}}{b^{2}} - \frac{2 \,{\left (2 \, b x^{3} + 3 \, x\right )} e^{\left (-b x^{2} - a\right )}}{b^{2}} + \frac{3 \, \sqrt{\pi } \operatorname{erf}\left (\sqrt{b} x\right ) e^{\left (-a\right )}}{b^{\frac{5}{2}}} + \frac{3 \, \sqrt{\pi } \operatorname{erf}\left (\sqrt{-b} x\right ) e^{a}}{\sqrt{-b} b^{2}}\right )} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [B] time = 2.11412, size = 539, normalized size = 7.81 \begin{align*} \frac{2 \, b x \cosh \left (b x^{2} + a\right )^{2} + 4 \, b x \cosh \left (b x^{2} + a\right ) \sinh \left (b x^{2} + a\right ) + 2 \, b x \sinh \left (b x^{2} + a\right )^{2} + \sqrt{\pi }{\left (\cosh \left (b x^{2} + a\right ) \cosh \left (a\right ) +{\left (\cosh \left (a\right ) + \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right ) + \cosh \left (b x^{2} + a\right ) \sinh \left (a\right )\right )} \sqrt{-b} \operatorname{erf}\left (\sqrt{-b} x\right ) - \sqrt{\pi }{\left (\cosh \left (b x^{2} + a\right ) \cosh \left (a\right ) +{\left (\cosh \left (a\right ) - \sinh \left (a\right )\right )} \sinh \left (b x^{2} + a\right ) - \cosh \left (b x^{2} + a\right ) \sinh \left (a\right )\right )} \sqrt{b} \operatorname{erf}\left (\sqrt{b} x\right ) + 2 \, b x}{8 \,{\left (b^{2} \cosh \left (b x^{2} + a\right ) + b^{2} \sinh \left (b x^{2} + a\right )\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int x^{2} \sinh{\left (a + b x^{2} \right )}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A] time = 1.30708, size = 101, normalized size = 1.46 \begin{align*} \frac{x e^{\left (b x^{2} + a\right )}}{4 \, b} + \frac{x e^{\left (-b x^{2} - a\right )}}{4 \, b} + \frac{\sqrt{\pi } \operatorname{erf}\left (-\sqrt{b} x\right ) e^{\left (-a\right )}}{8 \, b^{\frac{3}{2}}} + \frac{\sqrt{\pi } \operatorname{erf}\left (-\sqrt{-b} x\right ) e^{a}}{8 \, \sqrt{-b} b} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]